﻿using System.ComponentModel;
using System.Runtime.CompilerServices;

namespace MultiSliderSample
{
    public class RangeItem
    {
        #region 字段
        private double _from;
        private double _to;
        private string _name;
        private double _maxDuration;
        private bool _isStatic;
        private double _duration;

        #endregion

        #region 属性
        public double From
        {
            get
            {
                return _from;
            }
            set
            {
                _from = value;
            }
        }

        public double To
        {
            get
            {
                return _to;
            }
            set
            {
                _to = value;
            }
        }

        /// <summary>
        /// 是否静止
        /// </summary>
        public bool IsStatic
        {
            get
            {
                return _isStatic;
            }
            set
            {
                _isStatic = value;
            }
        }

        public double Duration
        {
            get
            {
                return _duration;
            }
            set
            {
                _duration = value;
            }
        }

        public double MaxDuration
        {
            get
            {
                return _maxDuration;
            }
            set
            {
                _maxDuration = value;
            }
        }

        #endregion
    }
}